<?php

/*
 * 
 * 
 *  This software has been made FREE by author for the interest of other developers. 
 *       I hope this will help you in coding faster and robust php code
 *             You can modify and redistribute it as you like.
 *               Your comments, suggestions and corrections 
 *                           will be highly 
 *                            APPRECIATED. 
 *                                       Author
 * @author :   Roshan Budhathoki (roshan_bnfm@yahoo.com);
 * @URL    :   <http://www.roshanbudhathoki.com>
 * 
 */

class Meta {

    //put your code here
    private $_keywords;
    private $_description;
    private $_title;
    public static $instance;

    public function __construct() {
        $this->_title=array();
        $this->_title[]='Myhighst.com';
    }

    public static function newInstance() {
        if (!self::$instance instanceof self) {
            self::$instance = new self ();
        }
        return self::$instance;
    }

    public function addKeywords($keywords) {

        $this->_keywords = $keywords;
    }

    public function addDescription($desc) {
        $this->_description = $desc;
    }

    public function getKeywords() {
        return $this->_keywords;
    }

    public function getDescription() {
        return $this->_description;
    }

    public function getTitle(){
    	return implode('|',array_reverse($this->_title));
    }
    
    public function addTitle($title){
    	$this->_title[]=$title;
    }

}

